<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/iview.min.js"></script>
    <script src="../../js/vue.min.js"></script>
</head>
<body>
<div id="app">
    <my-component></my-component>
    <my-component></my-component>
    <my-component></my-component>
    <!--<table>
        <tbody is="my-component"></tbody>
    </table>-->
</div>
<script>
    /*  Vue.component('my-component', {
     template: "<div>这是我自定义的内容</div>"
     })*/
    var data = {
        count: 0
    };
    var child = {
        template: "<button @click='count++'>{{count}}</button>",
        data: function () {
            return data;
        }
    };
    var app = new Vue({
        el: "#app",
        components: {
            "my-component": child
        }
    })
</script>
</body>
</html>